﻿@inherits System.Web.Mvc.WebViewPage<Nullable<DateTime>>
@Html.TextBox("", (Model.HasValue ? (Model.Value == DateTime.MinValue ? DateTime.Now.ToShortDateString() :  Model.Value.ToShortDateString() ): string.Empty), new { @class = "datePicker" }) 
<script type="text/javascript">
    $(function () {        
        $(".datePicker").datepicker({ dateFormat: 'dd-mm-yy' });
    });
</script>

